#ifndef __IMAGE_H__
#define __IMAGE_H__
#include "DataType.h"

#define IMAGE_ENABLE 0

#if IMAGE_ENABLE
extern const Image image_Home;
#endif // IMAGE_ENABLE


// #define ImageGetRgb(x,y,image) (((int)(image.imageu8[((x)+(y)*(image.w))*2+1])<<8)|(int)(image.imageu8[((x)+(y)*(image.w))*2])) //return int rgb
#define ImageGetRgb(x, y, image) (image.imageu16[(x) + (y) * (image.w)]) // return int rgb

// #define ImageGetRgbP(x,y,image) (((int)(image->imageu8[((x)+(y)*(image->w))*2+1])<<8)|(int)(image->imageu8[((x)+(y)*(image->w))*2])) //return int rgb
#define ImageGetRgbP(x, y, image) (image->imageu16[(x) + (y) * (image->w)]) // return int rgb

#endif // !__